<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="{:U('update')}" name="myfromSubmit" method="post">
                         
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 店铺名称 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="name" id="name" datatype="*" nullmsg="店铺名称不能为空"  class="rcol-xs-10 col-sm-5"
                                           value="{$currentmenu.name}">
                                </div>
                            </div>
                           
                           <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 贸易模式 </label>
                                 <div class="col-sm-9">
                                        <select id="trade" name="trade" class="rcol-xs-10 col-sm-5">
                                           <foreach name="tradeList" item="tr" key="k">
                                                 <option value="{$tr['code']}"  <if condition="$currentmenu.trade eq $tr['code']">selected="selected"</if>>{$tr['name']}</option>
                                           </foreach>
                                        </select>
                                </div>
                            </div>
                            
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 店主 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="owner" id="owner" datatype="*" nullmsg="店主不能为空"  class="rcol-xs-10 col-sm-5"
                                           value="{$currentmenu.owner}">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 电话 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="tel" id="tel" datatype="*" nullmsg="电话不能为空"  class="rcol-xs-10 col-sm-5"
                                           value="{$currentmenu.tel}">
                                </div>
                            </div>
                             <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 店铺状态 </label>
                                <div class="control-label no-padding-left col-sm-1">
                                    <label>
                                        <input name="status" id="status"
                                        <if condition="$currentmenu.status eq 1">checked="checked"</if>
                                        value="1" class="ace ace-switch ace-switch-2" type="checkbox" />
                                        <span class="lbl"></span>
                                    </label>
                                </div>
                            </div>
                              <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="id-date-picker-1">过期时间</label>
                                <div class="col-xs-9 col-sm-9">
                                    <div class="input-group col-xs-5">
                                        <input class="form-control"  datatype="*" nullmsg="请选择过期时间" id="exp_time" name="exp_time" value="<if condition="
                                               $currentmenu['exp_time'] neq '' ">{$currentmenu['exp_time']}</if>"
                                        type="text" />
                                     
                                    </div>
                                </div>
                            </div>
                       
                            <input name="id" value="{$currentmenu.id}" type="hidden">
                            <div class="space-4"></div>
                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->

<script type="text/javascript">
    jQuery(function ($) {
      $('#exp_time').datepicker({
       
            dateFormat: 'yy-mm-dd',
              weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
     
            language: 'cn'
        });
    })
</script>

</body>
</html>
